﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CustomControls_TopArticles : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            repArticles.DataSource = Entities.GetLatestArticles(5);
            repArticles.DataBind();
        }
        catch (Exception ex) { Response.Write(ex.ToString()); }
    }
}
